import {
  post, get
} from './_index'

const postList = {
  login: '/user/login/', // 用户登录
  logout: '/user/logout/', // 用户登出
  register: '/user/register/' // 用户登出
}
const getList = {
}

var apis = {}
for (let k in postList) {
  apis[k] = (params, headers) => post(postList[k], params, headers)
}
for (let k in getList) {
  apis[k] = (params, headers) => get(getList[k], params, headers)
}

export default apis
